import Vue from 'vue'
import Router from 'vue-router'
// import HelloWorld from '@/components/HelloWorld'
import Login from '../views/TheLogin'
import Admininfo from "../views/Admininfo"
import Dcinfo from "../views/Dcinfo"
import forms from '../views/forms'
import product from '../views/product'
import Addone1 from "../views/Addone1"
import Addone2 from "../views/Addone2";
import returned from "../views/returned"
import detail from "../views/detail"
import deleteType from "../views/deleteType"
import deleteDoctor from "../views/deleteDoctor";
import updateVipPrice from "../views/updateVipPrice";
import unchecked from "../views/unchecked"
import handled from "../views/handled"

Vue.use(Router)

export default new Router({
  routes: [
    // {
    //   path: '/',
    //   name: 'HelloWorld',
    //   component: HelloWorld
    // },
    {
      path: '/',
      name: 'Login',
      component: Login
    },
    {
      path: '/detail',
      name: 'detail',
      component: detail
    },
    {
      path: '/Admininfo',
      name: 'Admininfo',
      component: Admininfo,
      children: [
        { path: '/product', component: product, name: '已分配医生' },
        { path: '/unchecked', component: unchecked, name: '未分配医生' },
        { path: '/handled', component: handled, name: '已回复订单' },
        { path: '/Addone1', component:Addone1, name: '添加医生' },
        { path: '/Addone2', component:Addone2, name: '添加科室' },
        { path: '/deleteType', component:deleteType, name: '科室' },
        { path: '/deleteDoctor', component:deleteDoctor, name: '医生' },
        { path: '/updateVipPrice', component:updateVipPrice, name: '修改Vip价格' }
      ]
    },
    {
      path: '/Dcinfo',
      name: 'Dcinfo',
      component: Dcinfo,
      children: [
        { path: '/returned', component: returned, name: '已回复' },
        // { path: '/strategy', component: strategy, name: '瞎画的' },
        { path: '/forms', component:forms, name: '医生回复' }
        // { path: '/user', component: user, name: '列表' },
        // { path: '/Addone1', component: Addone1, name: '添加医生' }
      ]
    },
  ]
})
